/*     */ package com.evitch.csvtrade.cmd;
/*     */ 
/*     */ public class Timeframe
/*     */ {
/*  49 */   public static final Timeframe PERIOD_M1 = new Timeframe(1);
/*     */   public static final int _PERIOD_M1 = 1;
/*  54 */   public static final Timeframe PERIOD_M5 = new Timeframe(5);
/*     */   public static final int _PERIOD_M5 = 5;
/*  59 */   public static final Timeframe PERIOD_M15 = new Timeframe(15);
/*     */   public static final int _PERIOD_M15 = 15;
/*  64 */   public static final Timeframe PERIOD_M30 = new Timeframe(30);
/*     */   public static final int _PERIOD_M30 = 30;
/*  69 */   public static final Timeframe PERIOD_H1 = new Timeframe(60);
/*     */   public static final int _PERIOD_H1 = 60;
/*  74 */   public static final Timeframe PERIOD_H4 = new Timeframe(240);
/*     */   public static final int _PERIOD_H4 = 240;
/*  79 */   public static final Timeframe PERIOD_D1 = new Timeframe(1440);
/*     */   public static final int _PERIOD_D1 = 1440;
/*  84 */   public static final Timeframe PERIOD_W1 = new Timeframe(10080);
/*     */   public static final int _PERIOD_W1 = 10080;
/*  89 */   public static final Timeframe PERIOD_MN1 = new Timeframe(43200);
/*     */   public static final int _PERIOD_MN1 = 43200;
/*  94 */   public static final Timeframe PERIOD_DEFAULT = new Timeframe(0);
/*     */   public static final int _PERIOD_DEFAULT = 0;
/*     */   public int val;
/*     */ 
/*     */   private Timeframe(int val)
/*     */   {
/*  98 */     this.val = val;
/*     */   }
/*     */   public static Timeframe getTimeframe(int val) {
/* 101 */     switch (val) {
/*     */     case 1:
/* 103 */       return PERIOD_M1;
/*     */     case 5:
/* 104 */       return PERIOD_M5;
/*     */     case 15:
/* 105 */       return PERIOD_M15;
/*     */     case 30:
/* 106 */       return PERIOD_M30;
/*     */     case 60:
/* 107 */       return PERIOD_H1;
/*     */     case 240:
/* 108 */       return PERIOD_H4;
/*     */     case 1440:
/* 109 */       return PERIOD_D1;
/*     */     case 10080:
/* 110 */       return PERIOD_W1;
/*     */     case 43200:
/* 111 */       return PERIOD_MN1;
/*     */     case 0:
/* 112 */       return PERIOD_DEFAULT;
/* 113 */     }return null;
/*     */   }
/*     */ }

/* Location:           C:\Users\froge\workspace\jfx126_bin\lib\jfx.jar
 * Qualified Name:     com.jfx.Timeframe
 * JD-Core Version:    0.6.0
 */